export class Controller {
  constructor () {
    window._that.$emitter.on(window._that.$G.SET_SCORE, this.setScore)
    window._that.$emitter.on(window._that.$G.UP_POINTS, this.upPoints)
  }

  setScore (score) {
    window._that.$model.score = score
  }

  upPoints (points) {
    let score = window._that.$model.score
    score += points
    window._that.$model.score = score
  }
}
